home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / clib / strcpy.c < prev    next >
C/C++ Source or Header  |  1996-10-24  |  332b  |  22 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: strcpy.c,v 1.5 1996/10/19 16:56:28 aros Exp $
  4.  
  5.     Desc: ANSI C function strcpy()
  6.     Lang: english
  7. */
  8. #include <string.h>
  9.  
  10. char * strcpy (char * dest, const char * src)
  11. {
  12.     char * ptr = dest;
  13.  
  14.     while ((*ptr = *src))
  15.     {
  16.     ptr ++;
  17.     src ++;
  18.     }
  19.  
  20.     return dest;
  21. }
  22.